package com.refusea.train.domain.service.impl

import com.refusea.remoting.baidu.BaiduApi
import com.refusea.train.domain.service.CensorService
import org.springframework.stereotype.Service

/**
 * @author Zhang Yan 2024/4/27
 **/
@Service("censorService")
class CensorServiceImpl : CensorService {

    override fun textCensor(content: String): Boolean {
        return BaiduApi.textCensor(content)
    }

    override fun imageCensor(url: String): Boolean {
        return BaiduApi.imageCensor(url)
    }
}
